﻿{include file="public/header" /}
	<form method="post" class="form-x" action="{if $data.id}?id={$data.id}{/if}">
	<div class="panel admin-panel">
		<div class="panel-head"><strong>{:lang('currency')['edit']}</strong></div>
		<br/>
		<script>
			//city canshu
			var pid='{$data.pid}';
			var cid='{$data.cid}';
			var aid='';
			var selectc=true;
		</script>
		<div class="form-group">
			<div class="label">
				<label for="name">{:lang('currency')['city']}</label>
			</div>
				<div class="field">
				{include file="public/city" /}
				</div>
		</div>
		<div class="form-group">
			<div class="label">
				<label for="title">{:lang('label')['title']}</label>
			</div>
			<div class="field">
				<input type="text" class="input input-auto" id="title" name="title" value="{$data.title}" size="80" placeholder="{:lang('label')['title']}" data-validate="required:{:lang('currency')['required']}" />
			</div>
		</div>
		<div class="form-group">
			<div class="label">
				<label for="url">{:lang('label')['url']}</label>
			</div>
			<div class="field">
				<input type="text" class="input input-auto" id="url" name="url" value="{$data.url}" size="80" placeholder="{:lang('label')['url']}" data-validate="required:{:lang('currency')['required']}" />
			</div>
		</div>
		<div class="form-group">
		<div class="input-inline clearfix">
			<div class="label">
				<label for="image">{:lang('label')['image']}</label>
			</div>
			<div class="field">
				<input type="text" readonly class="input input-auto" id="image" name="image" value="{$data.image}" size="65" placeholder="{:lang('label')['image']}" data-validate="required:{:lang('currency')['required']}" />
				<span class="addbtn"><button type="button" data-id="image" class="button upload">{:lang('form')['file']}</button></span>
			</div>
		</div>
		</div>
		<div class="form-group">
			<div class="label">
				<label>{:lang('label')['status']}</label>
			</div>
			<div class="field">
				<div class="button-group button-group-small radio">
					<label class="button {if $data.status == "1" || !$data.status}active{/if}">
						<input name="status" value="1" {if $data.status == "1" || !$data.status}checked="checked"{/if} type="radio"><span class="icon icon-check"></span> {:lang('currency')['status_1']}</label>
					<label class="button {if $data.status == "2"}active{/if}">
						<input name="status" value="2" {if $data.status == "2"}checked="checked"{/if} type="radio"><span class="icon icon-times"></span> {:lang('currency')['status_2']}</label>
				</div>
			</div>
		</div>
		<div class="form-group">
			<div class="label">
				<label for="remark">{:lang('label')['remark']}</label>
			</div>
			<div class="field">
				<textarea name="remark" class="input input-auto" rows="5" cols="80" placeholder="{:lang('label')['remark']}" data-validate="required:{:lang('currency')['required']}">{$data.remark}</textarea>
			</div>
		</div>
		<div class="form-button">
			<button class="button bg-main" type="submit">{:lang('form')['submit']}</button>
		</div>
		<br/>
		</div>
	</form>
{include file="public/footer" /}